﻿using strange.extensions.command.impl;
using System;
using System.Collections.Generic;


public class UpdataItegrationCommand : EventCommand
{
    [Inject]
    public IntegrationModel IntegrationModel { get; set; }
    public override void Execute()
    {
        GameData gamedata = Tools.GetDataOutBOM();
        //保存数据
        IntegrationModel.PlayerIntegration = gamedata.PlayerIntegration;
        IntegrationModel.ComputerLeftIntegration = gamedata.ComputerLeftIntegration;
        IntegrationModel.ComputerRightIntegration = gamedata.ComputerRightIntegration;
        dispatcher.Dispatch(ViewEvent.UpdataIntegration,gamedata);
    }
}

